home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000114-20000217 / 000256_news@columbia.edu _Wed Feb 16 15:10:18 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA03187
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 16 Feb 2000 15:10:18 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id FAA17706
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 16 Feb 2000 05:10:47 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: "AMT" <amt.4243@wanadoo.fr>
  10. Subject: PB with scrip Kermit programming
  11. Date: Wed, 16 Feb 2000 11:17:25 +0100
  12. Organization: AMT
  13. Message-ID: <88dt3b$h9d$1@wanadoo.fr>
  14. To: kermit.misc@columbia.edu
  15.  
  16. who can tell me ho to customize the command file to execute the same
  17. commands on n nodes on a network ?
  18.  
  19. I work on an hp/ux 10.01 workstation
  20. i want to make automatically a command on three nodes (for example). if the
  21. second node is down  or doesn't exists my script doesn't continue and the
  22. third node is never treated.
  23. #!/usr/bin/ksh
  24.  
  25. cat /etc/hosts.6521 | while read LIGNE
  26.  
  27. do
  28.  
  29.    EQUIP=`echo $LIGNE | awk '{print $2}'`
  30.    CMDE="set host $EQUIP, take /softs/AMT/bin/mhker"
  31.    kermit -C "$CMDE";
  32.    echo i have tested  $LIGNE
  33. done
  34.  
  35. the file mhker :
  36. def unix do vax, set term byte 7
  37.  
  38. set input echo off
  39. set input case ignore
  40. set input silence 1
  41.  
  42. set terminal autodownload on
  43. set terminal bytesize 7
  44. set terminal character-set latin1-iso
  45. set terminal escape-character enabled
  46. set terminal height 25
  47. set terminal width 80
  48. set terminal echo remote
  49.  
  50. set file collision rename
  51. set file type binary
  52.  
  53. set transfer bell on
  54. set transfer character-set transparent
  55.  
  56. set receive packet-length 94
  57. set attributes on
  58. set window 1
  59.  
  60. set file type binary
  61. set telnet echo remote
  62. set exit warning off
  63.  
  64.  
  65. input 1 OK
  66. output {ATDS\13}
  67. input 1 OK
  68. output {\13}
  69. input 1 OK
  70. output {\13}
  71. input 1 OK
  72. output {12.5.2.y\13}
  73. input 1 OK
  74. exit
  75.  
  76. thank you for your help
  77.  
  78.  
  79.  
  80.